<%@ page contentType="text/html; charset=UTF-8" %>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@ page import="com.wlcorp.forcazamis.domain.baseinfo.Depot" %>
<%@ page import="java.util.Set" %>
<%
	List depotList = (List)request.getAttribute("depotList");
%>
<html>
<head>
	<title>样品库存情况</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Expires" content="0">
	<link href="${pageContext.request.contextPath}/css/css.css" rel=stylesheet>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/button_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/form_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/table_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/pagetitle_css.css" type="text/css">
	<script language="javascript" src="${pageContext.request.contextPath}/script/common.js"></script>
         <script language="javascript">
        	function queryData(){
        		//var depotNameSelect=document.getElementById("depotName");
        		var depotNameSelect=document.all["depotName"].options;
        		for(var i=0;i<depotNameSelect.length;i++){
        			if(depotNameSelect[i].selected){
        				var depotName=depotNameSelect[i].value;
        				document.forms["sampleForm"].action="${pageContext.request.contextPath}/sample/sampleManager.do?depotName="+depotName;
                		document.forms["sampleForm"].submit();
        			}else{
               	 		document.forms["sampleForm"].action="${pageContext.request.contextPath}/sample/sampleManager.do";
                		document.forms["sampleForm"].submit();
                	}
        		}

			}
			
        </script>
</head>
<body bgcolor="#ffffff" onload="queryData()">
  <form name="sampleForm" method="post" target="subSampleAssignListFrame">
  		<input type="hidden" name="method" value="getSubSampleAssignList"/>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="30">
			<tr> 
			  <td width="22" class="page_titlebar_head">&nbsp;</td>
			  <td class="page_titlebar_bg" width="981">样品库存情况</td>
			</tr>
		  </table>
        <center>
        <table width="90%" border="0" cellspacing="0" cellpadding="0">
	      <tr> 
	        <td width="50%"  class=td5px style="BORDER-LEFT: #999999 1px solid;BORDER-top: #999999 1px solid;BORDER-bottom: #999999 1px solid;" height="25">&nbsp;</td>
	        <td width="50%"  class=td5px style="BORDER-top: #999999 1px solid;BORDER-bottom: #999999 1px solid;BORDER-RIGHT: #999999 1px solid;" height="25" align="right">
	        <nobr><font color="#003399"><b>&nbsp; 样品编号：</b></font> 
	          <input class="input" type="text" name="sampleCode" style="width:120px"/>
	          <font color="#003399"><b>&nbsp; 样品仓库：</b></font> 
	          <select name="depotName" style="width:100px">
	          	<option value="">   </option>
	           <% 
          		for(Iterator iter = depotList.iterator();iter.hasNext();){
          			Depot depot = (Depot)iter.next();
          	   %><option value="<%=depot.getDepotName()%>"><%=depot.getDepotName()%></option>
               <%} %>
            	
            </select>&nbsp;
	          <input type="button" name="Submit" value="      搜索 " class="button_find" onclick="queryData()">
	          </nobr> 
	        </td>
	      </tr>
	    </table>
	    </center>
  </form>
  <center>
  <iframe id="subSampleAssignListFrame" name="subSampleAssignListFrame" width="90%" frameborder="0" height="520px" scrolling="auto" src="" style="margin-top:-15px"></iframe>
  </center>
</body>
</html>
